package com.yft.data.task;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

import com.yft.data.service.DataService;

@Component
public class DailyTask extends QuartzJobBean {
	private static final org.slf4j.Logger logger = LoggerFactory.getLogger(DailyTask.class);
	
	@Autowired
	private DataService dataService;


	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		dataService.setBlackList();
		logger.info("执行计划任务，设置提取黑名单");
	}
	

	public DataService getDataService() {
		return dataService;
	}

	public void setDataService(DataService dataService) {
		this.dataService = dataService;
	}



}
